-- GENERATED SPELL FOR [Shadowy Assassin] --


function spell0_2434(pUnit, Event) --@Stealth,Self--
pUnit:FullCastSpellOnTarget(1785,pUnit)
pUnit:RegisterEvent('Sorts_2434', 0, 1)
end

function Sorts_2434(pUnit, Event)
local choix_sorts_2434 = math.random(0, 0)
if choix_sorts_2434 == 0 then
pUnit:RegisterEvent('spell0_2434', 1, 1)
end
end

function mob2434_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2434', math.random(1500, 3000), 1)
end

function mob2434_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2434_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2434_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2434, 1, 'mob2434_Action')
RegisterUnitEvent(2434, 2, 'mob2434_Leave')
RegisterUnitEvent(2434, 3, 'mob2434_Kill')
RegisterUnitEvent(2434, 4, 'mob2434_Die')
